simple implementation of id as ex for chapter 5