Working on Layer.cpp