add box.cpp from professor