Solution without comments