adds solution using map