modifying laser.java