taking inputs from stdin