working on example/psl.c