Changed program to be interactive