completed assignment 3.