An analysis of the harmful effects of smoking in young and old people