refactor price calculation into pod