Teaching plan preparation problem