cpp: fleshing out library