Added workable example test1.cpp