programming tasks from algorithm course