Adding a profiler class