flatten by samakar | SimScale