changed variable c to cup for clarity