added Run() method, failing on segmentation