custom writable example