done summarytask api. todo: Demo.java and junit tests