added codylindley code for studying