added Run() and invoking it from main()