* Extracted a method for computing the output values from each layer