* Solution for the first task