added method to take array of objects to Observable