Organize the program with different files

Add files functionpicture.c, functionpicture.h and makefile. Now you can compile doing make.