added value calculator in Stock class