add CaseStudy3; add python code to autogenerate case for arbitrary sizes