added more calculations and a first try at a plot