moved Analysis class to analysis package