add using and adapt main
added system.io using, adapt program