Fourth task
Added comments