Code generation by applying MDA