add baldridge's sample code
add test