tutorial step 1: a controller