solved assignment 2