Select the most appropriate meaning of the idiom in bold in the given sentence.
I am going to take a leaf out of your book and start packing my own lunches.
1
To study very hard
2
A book containing a list of secret contacts
3
Imitate or emulate someone in a particular way
4
Be in somebody's favour or good opinion