add logic
add logic
finished writing example