compilation errors resolved. example does not work yet