refactor inherits to separate file
rewrite Struct using inherits
Float and Int types