Coded the basic outline