refactored total price helper method to a model class method in the product model