second exercise from Hartl's Rails tutorial