Learning ruby; redoing old problems