Added input layer code and hidden layer code.