Splane function
Defining splanes as functions with parameters.