sim900a mini phone number restriction

help ! help! I am working on a project using sim900a mini and arduino uno. as of now, my arduino can receive message. but I don't know how can I control digital outputs by means of texting a code. example I want to send SMS containing 131 , (pin13 on). plus I want my arduino to obey this code with respect to authorized phone number. What should I do and where to start? BTW I used AT command in receiving SMS
.

What should I do

Write some code to get the data from the device, when a text message arrives. Have the code parse the data, to get the phone number and the contents of the text message. Have the code execute the correct function, based on the contents of the text message, only if the message is from the correct phone number.

and where to start?

With a simpler project.