added Basicfuntions class