[NEW] first latin implementation

plus test cases