Implemented rectangle class for testing