Added function main in class DanielClass