Added to_ary to model class