Create modular applications in java