my solution for the assignment