update product.rb, need to refactor...