Trying class-based approach.