The boy had a project.
But, the teacher said it looked unrealistic and failed him.
He worked hard and bought some of the materials that were needed.
He worked hard but couldn't afford some of the materials needed.