added bad_example.cpp