added L Hopitals rule for limits