finished up to section 5.4