Initial pyramid code