Completed assignment2