- [ ] split of function to calculate classes - [ ] improve variable names - [x] add comments to clarify code where needed - [x] remove redundant code sections