Source code for light scattering sample