Added public getId() method.