working in the 3 classes