added teleop template code by greg