Pedro Hernandez works diligently in Ms. Morales’s class, looking like a professional in his snazzy labcoat.