Added C++ script to create and call a function