Implementing of the main classes. Two basic tests on the main.cpp file.