Luiz - 2019-11-02

The Code should just a direct translation from java