QUWPC with main()