'getFirends' returning a 'Session' object

The function 'getFriends' return a 'Session' instance instead of a 'Friends' instance.