Added alternate solution to #8