3-layer DNNs working