setting constructor property of prototype