MacFarlane surprises UCLA class, announces contest