scheduler1 - first attempt without testing