added main.cpp for class testing