add program for making base of 3