written problem pretty