Added macro for fetching values for list of classes