delay time is annoying
adding main module makes debugging and running easier.
ch 14 challenge 1: generate a cupcake every other time one is eaten.