Create basic_functions

Added code for basic functions.