Add a method which will give us O(n) time complexity