begin working on basic_functions in c
reorginize basic_functions