A student survey was conducted to analyze the number of hours spent on homework over a week. The number of hours recorded for each day is as follows:
Monday: 2 hours
Tuesday: 3 hours
Wednesday: 4 hours
Thursday: 1 hour
Friday: 5 hours
Saturday: 2 hours
Sunday: 3 hours
What is the median number of hours the student spent on homework during the week?