some templates for neural nets