Added Laser class and fixed NullPointerException