Added an addTransaction method