Sample of creating rack style middleware