bool compareAttributes(Attr attr1, Attr attr2){ return attr1.x == attr2.x && attr1.y == attr2.y && attr1.h == attr2.h && attr1.w == attr2.w; }