Create main.cpp

An original and rustic code.
Comments for code will be added soon.