changed the type of 'amount' from Double to Integer (closes #10)