first attempt, with base graphics