got a problem with inheritance