First version of onion architecture