Refactored main.cpp to use shared pointer.
Progressed on refactoring about shared pointers.