- implement cost in OutputLayer instead