Cleaned chapter7