codes related to learning and implementing ruby