Added trigger class and implement trigger for door.