Profiling with classes