Family dog and stray bear become friends