#include "the-foos.h"
#include <string>

int main(int argc, char** argv)
{
    std::string the_argument = argv[1];
    IFoo* foo;

    if (the_argument == "a") {
        foo = new AFoo();
    }
    else if (the_argument == "b") {
        foo = new BFoo(666);
    }

    std::cout << foo->bar() << std::endl;

    delete foo;

    return 0;
}
