There's no such thing as "beautiful code"
Beauty is in the design, the concept, the algorithm.
The closer you approach the design, the concept, the algorithm -- the more beautiful the code, but the code itself is never beautiful.