solved class assignment