declare g attribute
rectangle class - not fully implemented