ruby exercises from the intro to programming book