added 'functions.sh'