Implemented the object creator and the creation method for the object with primitive values, as given by user input.