extract method
laksjdf;
Silly mistakes
Refactoring using the extract and move method.
Diagram class
Replace Temp with Query
More extract methods
Replace Temp with Query for totalAmount
More replace temp by query.
Add polymorphism.