started on the library functions file