layers: introduce layers.hpp and .cpp for layer related code