Prisoners take baccalaureate exam