Creating your own autoencoder