Connecting engagement and focus in pedagogic task design