a hinge can allows a door to open and close