simple char device example