Removed the inner class rectangleComponent