planes function

Add planes