Adding code to check with price range and type