It is a Design of Logic. Based on Design Pattern.