Add instance method to constructor