homework: fix it all!