nested = %{
buttercup: %{
actor: %{
first: "Robin",
last: "Wright"
},
role: "Princess"
westley: %{
first: "Cary",
last: "Elwes"
role: "farm boy"
}
IO.inspect get_in(nested, [:buttercup])
IO.inspect get_in(nested, [:buttercup, :actor])