copied fixed template from HW6 page.