Implemented getTotal()