API tutorial for beginners