updated input/output for vector graphics problem