Started writing generic plot function.
Completed assignment.