Resized stack figure
Splitted examples and adapted to new Java API