added print method and printed all expected outputs