typehint in class and added docblock