Added static method, toString and methods for demonstrating pass-by-value