Perfect Codes And Related Structures