Door class, close method, isOpened method