split example into two files