write a program that takes in transactions and journalizes them