Conversion routine (first draft)
Merge pull request #1 from ahb108/firsttry

Conversion routine (first draft)