Implemented functions and added file to the repo.