added res example