Adding constructor to prototype