Heroin dealer gets five-year prison term