add makefile and example