added Output and code