Added solution to assignment2