Added the transaction to the User and Favorite classes