Adding initial sketch of code made as thinking through requirements. Won't run yet.