Made example more generic