hw3 fully tested and finished