Change social networks hash to array of classes