Corrected foldr
Finished assignment 3