A boy works on a project in shop class.
The boy's project is for a school activity.
Project in shop class is a school activity.
If the boy is working on a project in shop class, this implies that the boy's project is for a school activity as shop class is a lesson in school.
Shop class implies the boy is doing a school activity.