Basic program that is going to be used for hw quesion 1. Still need to design the newDelay function