see section 5.3.1 in your book for more tips and examples