Implemented the two functions and added a code example.