module Shops: optimize code