apply strategy pattern to double and triple numbers.