Code for generating artificial data