iterative function - with sierpinsky triangle as example...