Encapsulate stock logic in a Stock object