example 4 comments and code cleanup