add solution for task4