Port adam's story into ruby framework