add rocks.cpp