Finished refactored triangle koan