As the comment says...
Oughta return structs, not pointers of specific types.