implement friends endpoint