Automatic Sliding Gate Lock Design