Implented constructor and get/set functions