When all tasks for a lesson are completed, complete the lesson

Resolved #10