Initial code for creating upper and lower boundaries.