Code from episode 3.