added communication between classes