Beat together the butter and the sugar in a bowl until light and fluffy, add the eggs one by one beating for a minute after each addition.
Alternate the dry ingredients, flour, with the milk, beating in additions. Beat in vanilla extract and coconut extract.
Pour into cupcake liners and bake for 25 minutes in a 175C oven or until a skewer is inserted into the centre and comes out clean. Allow to cool for 5 minutes in pan and then turn out onto wire rack.
Beat the butter until softened and light, beat in the icing sugar bit by bit, adding vanilla extract and milk when needed. Beat in other extracts and finish with milk and beat until desired consistency has been achieved.