Add getId method