createStudy function

Create a study