                 cmdMotor(posZ, motorZ);
                 break;
             case '+': // head on
+                head.on();
+                break;
             case '-': // head off
-                Serial.write("err not implemented\n");
+                head.off();
                 break;
             case '\r':
             case '\n':

#include <Motor.h>

int posX = 0;
int posY = 0;

Motor motorX(2, 3, 4, 5);
Motor motorY(6, 7, 8, 9);
Motor motorZ(10, 11, 12, 13);
Switch head(14); // change this

void setup() {
    Serial.begin(9600);
