Given a list of integers, remove duplicates from the list.
Return a new list containing each integer only once, preserving the order of its first occurrence. Implement remove_duplicates(nums), where nums is a list of integers and the result is also a list of integers.
def remove_duplicates(nums):