Source code for the light scattering sample