Class based approach 1.0