Constructor working with new and without.