practice code in learning hamr