list_print should take a function pointer to print the data
and also it should be public.
Move the main function to main.c