created Ledger.rb file and reorganized several classees