Code to calculate weights and bias. Next: verification of calculated weights and bias.