Solved functions

Contains the two functions