added comments to practice function