how to shedule activities based on resourses