Answer version1.1 to assignment 2