removed samples updated rectangle.cpp