Use function pointer in main, update some of c7