added gist with source code