completed skeleton for controller 1's input