Fixed print_an_s method