adding class for CGRect