Created auto encoder