The art teacher has 1 gallon of paint, which is enough for \frac{2}{3} of the class to complete a project.

How many gallons does she need for the whole class?