Added method to return array.