Chapter 3 Exercise 5

Modify exercise 3 to convert to different base
Valid up to hex