almost done.. small bug on printTriangle still...