codes for blog post 114