calculated values were overwritten unintentionally
Added another example