adds friends and friends_networks method to User model