7.1 Write a Function from a Table