method getSubject(int id) was added