working version with two-way and shared binding, beforerender method, first test env