Deleted the throws statements in the method as they are unchecked
exceptions