Changed namings and added comments to the example.