modified class example for clarification