adding my solution to the problem