added main -- all input from user and its processing will happen here