Started making 1 to 3 translate into a function

Doesn't work as yet.