added a support.cpp file, added sample input and output