put together utility method to Class