made changes to reflect encapsulation of functions
made changes to reflect encapsulation of functions
coordinating with changes made to array.c
small changes
fixing assert statement