Added updated code samples