adding solution to star pyramid assignment