declare g attribute
rectangle class - not fully implemented
draw recangle corectly