Lectures on quadratic forms