homework7 skeleton