added script like code for io and scala