a simple base converter.