Updated custom adapter example