Add script with functions from tutorial