built the shell of the maze class