updated code to use parent rather than the older base

updated example script to use the new way of using the framework