updated version of homework 8 with deadline specified