Pyrimid Challenge

I had a little trouble here but, it came out ok anyway.