Update Layer.cpp