Write add method