s_array works (at least some basic testcases were correct)