implementation for challenge
fix indent