Updated and simplified the PG example