QF with main()