testing and comments added to example 2