WIP linear approximator