added initial rust code