refactoring price and stock