final exam, mostly working