Please correct all grammar problems in the following text.
While attending my labs, he showed himself as an active and hard-working student.
While attending my labs, he showed himself to be an active and hard-working student.