commiting Assignment2 solution