Rectangle overlab, c++