The write method was wrong as well as there were missing pieces in the class for it to work properly.
00:14:26
May 06, 2019
00:15:57