Working version of a deep autoencoder