removing main() method, we can call runSample() directly instead