Added solutions to functions problems