Added predictions class and some unit tests. Updated examples