Seperation of Lkyramid and creating an abstract class to call LkPyramid