Change read function into static class function