added exercise solution. hiding output