Wrote Thread class skeleton