Innerclasses for keys implementation done