refactored and added example for H1