wrote addTwo and addFour functions