finished hw3.1
finsihed hw3.2