wrote it in coffee script, wrote an example