Data science

Needs review
move this block into a separate method