Step 1 writing the controler