3-layer ann model with sigmoid