training a nice network