#pragma once // Use modern include guard

#include <cstddef> // For size_t

class StockData_Old {
public:
    // Constructor
    StockData_Old(size_t size);

    // Copy Constructor (Rule 1 of 3)
    StockData_Old(const StockData_Old& other);

    // Copy Assignment Operator (Rule 2 of 3)
    StockData_Old& operator=(const StockData_Old& other);

    // Destructor (Rule 3 of 3)
    ~StockData_Old();

    // Public method to access data
    double& at(size_t index);

private:
    double* data_;
    size_t size_;
};
