New example using only states and removing preference