first crack at pyramid script