a better example, includint actual layers