first basic implementation of the laser-algorithm