Added new class that represents key positions

fixed pointers.