add write method and test Class