Heroin conviction brings 10-year prison term