Passing Object to function

If you put the definition of the class in a header file, and include that file in the sketch, the code compiles.