A rule-based system to schedule production