Implemented the totals properties, using MVVM (sort of)