Imported example Python Code + started conversion to java