Add solutions to some tasks in fuctions