Sample Size Function and print method added