Add public methods to Total Class. Use lambda for generating methods.