refactored stocks app