working on earlier examples