Added main.c

also example