Solution assignment2

Solution to assignemnt 2 added