Working homework

thanks for helping debug chrome and all the pointers!