Programming exercise, implementing a trivial social network command line sim