adds an encoder class with distance and velocity functions, takes the digital inputs of the encoder and the wheel diameter as parameters