Completed third homework assignment