added simple code listing and commented out some boilerplate code