1, He did something for the person he Love/have affection
2. he did something he likes to do (Programming)<p>I think sending a present to a person you love is a very personal matter and one should do what he feels like doing. It's not merely a means to an end right?. One suerly derives happines from doing it as well.