Updated variables (changed "m" to "s")
Updated functions (changed mean to solve)