initial crack at problem 26