My solution for this reddit challenge :  bit.ly/19UyaXk