1. Modularized code(created a adjust_balance method to update balance on transaction)
2. Used attributes for reading and updating records