Urbana man who admitted having heroin gets prison