make example more generic