adding exercises from functions chapter