public void Print() { Id accountId = cardReader.Authenticate(); List <HistoryLine> historyOfAccount = history.Get(accountId); string formattedHistory = stringFormatter.Format(historyOfAccount); printer.Print(formattedHistory); }