Create example.cpp

It's an example in which the binary functions are used.