got the .add() function fleshed out in main.js