example code running with plots
costhetaK
minimum fl running