Added generic type to Transaction class to remove warnings