module 1 assignment code for numericalMOOC