Solve homework2-problem9: Points inside a house