Changed example to use the io interface
Merge pull request #2 from MariaRigaki/master

Changed example to use the io interface