How to create a spending tracker