demo with example based calculations