lab 6 done (basic version, no star-task)