OS Homework - task