intermediate version from the hackathon