demonstrates an alternative implementation of a class