doing math...initial attempt