basic arrow straeam code