added target() and getTarget(), updated example