creating a simple api for managing user friendships