Completed assignment2.