adding the main.cc file and hopefully what will be the material file