add functions exs
do the extra credit