The way to a teenager’s brain is through their stomach. Students on two campuses can now earn discounts at local shops and eateries by building points on an app that measures whether they check their phones during class.

The app, Pocket Points, was developed by a student at California State University, Chico, and has now been implemented on the Penn State campus as well, according to the Penn State news site Onward State.

When students arrive at their lectures, they open the app (which can tell when it’s in a campus classroom) then lock their phone. The app then measures how long they go before checking their phone again. The longer it stays locked, the more points they get, and the more hoagies/cheesesteaks/pizzas they get to redeem at participating locations. Because if highly-trained Ph.D.’s can’t get kids to focus, surely the promise of hot cheese can.

If only they could make this work for grown-ups at dinner parties.

[Onward State]

The Leadership Brief. Conversations with the most influential leaders in business and tech. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.