compiles but doesn't work - you got the idea though