Social graph - simple exercise for server-side developer.