touched event factory register interfaces
added Diagnostics inner class sample