creating sub app in basic example