added pretty() with test