Added the main.cpp of version 0.2.1