updated to include setMaxSpeed(int,int) in .cpp and header