Implemented cpu and memory monitor