Notes on calculus