added sales model logic