Place the butter and sugar in the bowl of an electric mixer and beat until pale and creamy. Gradually add the eggs, beating well after each addition, and the vanilla and beat until combined. Add the flour, baking powder and chocolate and beat until combined.