class ANN, fixes #74