finish the guards, add example code