Removed def from example

Removed def keyword since type was already specified. This is consistent with following example in the guide.