implemented buy command

see title