finished assignment 1
p03 of p99