replaced Simulator.createLayer with Simulator.Layer