Hermione approached Professor Sprout at the end of her fourth year for help in creating a magical terrarium with enough plants to support a mid-sized beetle in the closed jar for a year. 

Sprout was more than happy to help one of her top students. She, too, used to take collections of magical plants home during the summer, and was delighted to find Hermione as interested as she’d been at that age.