1. Break the chocolate into pieces, and melt it in a bowl over a pan of simmering water.
2. Blend the cream cheese and margarine in a bowl until smooth, then stir in the melted chocolate.
3. Sieve the icing sugar and beat it into the cream cheese and margarine a little at a time.
4. Add vanilla if you're using it.