refactoring the statement() in class Customer