Basic exercises from the book "Learn to Program"