Can now total orders - refactored