(old) programs to solve schedule