Demo program for PS course