assignment phase 3 - beautification