Set important ivars in the constructor