close #1  implement rectWithName method.