finished fjpoisson.m