Adding main classes for constructing requests and replies