implemented my-flatten. out of excercise.