writing your own methods