Transfer func
Added transfer function, output calculation