Inital work for pie