Added MyRect example in C++ for an exercise