Factory worker gets 5 years for putting glass shards in cups