Wrote some functions. Using clang to compile!