Updated constructor with additional int argument. Added new public member 'type'.