Worked on 'training signals' and making a cost function.