Code from hour 5, docs from hour 5 and hour 6