added code

added some program code to actually make a working translator