Solved assignment 1