add rectangle class