finished hw2; perfect score ;)