stuff from learn ruby the hard way