added the HiddenLayer class