Solution 2nd Assignment