my solution to some exercises on web