added the uptime() method and made changes to the __toString() method