I tried to resolve this task in this way bacause i could not find online other way