added source code for CPU monitoring