Added IOException. main() v2