Ussing object instead of array in adding, editin and deleting course
functions.