This should be the constructor; initialize instance attributes in constructor instead of making them class attributes.