Using the five-step process, construct the library functions that:
a. calculate the sum of a list of numbers;
b. take a given number of elements from the start of a list;
c. select the last element of a non-empty list.
Solutions to exercises 1-4 are given in appendix A.