AIR FORCE ACADEMY, Colo. — A senior at the Air Force Academy has pleaded guilty to possession of child pornography and taking cellphone images of unclothed civilians without their consent.

KRDO-TV reports ( cadet Jacob Cook entered his plea Tuesday during a military trial at the academy.

In exchange for Cook’s guilty plea, prosecutors dropped a charge of abusive sexual conduct.

Cook said in court Tuesday he used a hidden cellphone to record two girls when they undressed and showered at his father’s house.

He was sentenced to 30 months in military prison.

Information from: KRDO-TV,