completed new functions.js
first two exercises