working in visual studio with latest PG + example