Hermione goes back in time