Refactoring Stock class and ParamList class