exercise according to codeschool's demo