another exercise from the Hartl blog tutorial