adding system idle monitor sample code