implements uptime and the base of ps. Test these two functions