added correct plural handeling
Added slope and midpoint programs