modified main()
for another demo