moving code to gists