Added sphere function to single.py