Added framework for single case design

Not finished so I commented it out so I can come back to it later