J3gb3rt code

complete and tested