Doubler function using echo to display output