Changed model function to gauss function