Add constructor to prototype