Metadata and docstrings added/modified, variable names changed, modulo lines modified (more in line with exercise instructions