organized code and comment it