latent function example in school