add a pure virtual function to Thing that returns an int indicating the type of thing