Add method to prototype