OBHF to object-oriented programming