This is my solution for the assignment