nested classes seems to work