Motion on a flat surface with friction