added eric's code, not compiling