completed assignment

assignment completed w/ comments and both functions working as expected
(for me at least).