refactoring code most methods is added from docking to bike container