coding exercises from the Learn to Program book