refactored and added pyramid examples