convenience function to inherit struct with properties