Refactoring
Array
add new 'first' and 'last' functions to extract a first or last element frm an array