finished the functions exercise