Added functions and constants to arithmetic example