Created basic framework for Convert function.