// Exercise 3.1.1 class Address { int no; String street; String city; Address(int no, String street, String city) { this.no = no; this.street = street; this.city = city; } } class House { String kind; int rooms; Address address; int price; House(String kind, int rooms, Address address, int price) { this.kind = kind; this.rooms = rooms; this.address = address; this.price = price; } boolean cheap(){ return (this.price < 300000); } } /* // Examples/Tests Address a1 = new Address(23, "Maple Street", "Brookline"); Address a2 = new Address(5, "Joye Road", "Newton"); Address a3 = new Address(83, "Winslow Street", "Waltham"); House h1 = new House("Ranch", 7, a1, 375000); House h2 = new House("Colonial", 9, a2, 450000); House h3 = new House("Cape", 6, a3, 235000); */