started defined a class with a function that just does cout and cin and called it from main
function for adding values through io and one without