improving the main by adding fileLaoder.cpp