Updated Transaction.java and Category.java