adding data
add readInput function