added ability to create a curve using an input object.