solved assignment 3