assignment_4_b new implementation

Implementation using the convert_to_array() function.