client-side code to log physical exercises