getCode() method is added.