This is my solution for project 1