Moved the customerhistory functions to the customer class