Work function and ejected electrons