equals() override method for Transaction

Found the equals method to override