how to make a generator for science project