uses Paths class