Removed table print function from the Earnings class

Function didn't belong in the class because it only applied to people that would want to use tables. Moved it to the example file for reference.