finished up code for friends, no test