Chapter exercises from Learn Ruby the Hard Way