putting the constructor in the right place.