Added main.cpp for testing