struggling with ol3 inheritance