Compiled all the functions to main