make Write() method non static