hw10 completed, closes #11