Added cas app with Kernighan's code