[ADDED]: added issue #3 solution.