task4_4: replace shared_ptr with shared_array for char[]