Added functionality and comments to provided skeleton functions