added a basic iostream dialog