Dog that spent two and a half years in shelter finally gets forever home