Code samples and exercises