Got impatient because Dan doesn't know what he's doing so I just fixed these errors (unfinished code) by myself