public List<Mass> getInputs() {
        List<Mass> inputs = new LinkedList<>();

        for (Mass mass : masses) {
            if (mass.getType() == INPUT) {
                inputs.add(mass);
            }
        }

        return inputs;
    }