finish pyramid.c