class rectangle adds position and size