Functions for creating edges and lid added