Why cannot we do a `'\n'.join(stack)` here? Also please indent by 2 chars and not somewhat 20.