Add Eloquent JS chapter 6 exercise