Adding accessor type to methods and variables