I came up with this solution