slightly updated eddie's notes