[ADDED]: added solution for issue #7.