Add PGWrapper class and specs