Finished task 1 and 2 on third lectures (generate and maximumValue)