Implemented initializeCorners method