updated syntax of example