Example: building a simple alarm system