Demo program from ps course