Concept to Method

converting proof of concept function into class method.