added stdin example