Implemented task to 5-th lab