JPsi implement

Implementation of top measurement using JPsi code.