Refactoring, removed totalNumberOflines, since we have size()