Simple test code to explore implementation of new ideas for ptool2