recreated bomb class as a factory