Template based Production System Design