Wrote skeletons of fitting and predict functions