activities and fragments inheritance