Task #5 for OS course #2.