added class examples
ported build matrix to cpp