updated pa2 with working code, comments tbd