Final Draft of Function

Not sure how to correctly revert a revert that I accidentally pressed...

This is the final draft. Grade this one.