Added tests
Changed how __str__() and total() return