adjusting more methods, object, and while loops