Final code - what was submitted