Template for object oriented apporach