added in some pseudo code, compiles