LIGHTS PROBLEM: 2 application exercises