Listing 3: Example application of the Smart Home.