Control Speed and Direction of Motor 