Starting to write AutoEncoder.