public class Safety {
private static Safety instance = new Safety();
private Safety() {
if(instance !=null) {
throw new RuntimeException("can not create another instance!");
}
}
public static Safety getInstance(){
return instance;
}
}