Fixing errors, intorducing example function