adding type to Contact model