finished hw1 dm