#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <vector>

#include "./DividendStock.h"
#include "./Stock.h"

using namespace std;

int main() {
  // create several investments
  Stock* stock = new Stock("MSFT");
  stock->Purchase(50, 10.00);
  stock->set_share_price(9.50);

  DividendStock* dividend = new DividendStock("INTC");
  dividend->Purchase(100, 20.00);
  dividend->PayDividend(5.00);
  dividend->set_share_price(30);

  // display info about each investment
  stock->Print();
  cout << endl;
  dividend->Print();

  delete stock;
  delete dividend;
    
  return EXIT_SUCCESS;
}