Solve motion problems involving friction (#141)