added example.cpp and Makefile