finished hw6. something wrong with image, but i'll fix tomorrow