Tried out a snippet of code