Added source code from my answers