Added propTypes and defaultProps
Added value computation