Hmm, I'd say that sex as a reward/motivation would have shown some great results, but I guess this works too.
Still not too late though, just say that if she gets good marks you'll 'reward' her or something and I'm sure you'll see the improvement in no time.
Great ending though. I think it'd be cute if her falling asleep basically becomes like, their secret signal to have sex or something.