refactored adding to tally, created addToFailuretally method