demo How to fetch property of class with subscript