Created two temporary doubles for lenght and width to be able to create on of the two new objects rectangle or ellipse, depending on which ShapeType is chosen