add example/controlspace. Adapted from Doug McClean's code