pretty printer - assignment