progfun assigment week 2