soluntion to Assignment 2