C++ geometry assignment working now