added .cpp file for lab400