Debugging my solution