Traditional and functional code