awk compare column between 2 files

Hi, I would like to compare file1 and file2

file1

1
2
3

file2

1 a
2 b
3 c
4 d

The result should only print out "d" in file 2.

Thanks

One quick approch:

grep -v "$(cat file1)" file2 | awk '{print $2}'

Oops, I found a thread posted by Ygor

awk -F " " 'BEGIN{while(getline<"file1") a [$1]=1 } ; a [$1] !=1 {print $2 } ' file2

This command works great.

Thank you Jacoden. Your command works fine too.