function to calculate them, keeping it as attributes once done.
function to calculate them, keeping it as attributes once done.