In the classical version of utilitarianism theory, who was t…

In the classical version of utilitarianism theory, who was the philosopher (or philosophers) who focused not only on the quantity of the pleasure (i.e., how many units of pleasure/happiness), but also took into account the quality (type) of the pleasure produced (i.e. Level 1 vs. Level 2 pleasure) when assigning the number of units of pleasure from each activity?