Added StreamWriter for demo