#include <stdio.h>
#include "framework.h"
#include "Shape.h"
#include "Polyline.h"
#include "Rectangle.h"
#include "Circle.h"

int
main(void)
{
    Polyline    polyline;
    Rectangle   rectangle;
    Circle      circle;
    Shape       shape;

    polyline = (Polyline)new_instance(polylineClass);
    shape = (Shape)polyline;
    draw_shape(shape);

    rectangle = (Rectangle)new_instance(rectangleClass);
    shape = (Shape)rectangle;
    draw_shape(shape);

    circle = (Circle)new_instance(circleClass);
    shape = (Shape)circle;
    draw_shape(shape);

    return 0;
}