Added 'type' property to Sample.