wrote construtor